import http from "@/utlis/request"
// 我的订单列表
export const getMyOrderList = (data) => {
    return http.post("web/kh/order/getMyOrderList", { "order_type": 1 })
}
// 我的订单详情
export const getInfo = (data) => {
    return http.post("web/kh/order/getInfo", data)
}
// 支付
export const createPaymentForGoods = (data) => {
    return http.post("web/kh/order/createPaymentForGoods", data)
}
// 订单状态查询-支付后调用
export const queryPayment = (data) => {
    return http.post("web/kh/order/queryPayment", data)
}
// 取消订单
export const cancel = (data) => {
    return http.post("web/kh/order/cancel", data)
}

// 确认收货
export const confirmReceipt = (data) => {
    return http.post("web/kh/order/confirmReceipt", data)
}
// 订单评价
export const addComment = (data) => {
    return http.post("web/kh/order/addComment", data)
}